import ajax from './index'
import { append } from './index'

// 数据图表
// export function getTrendData(data) {
//   return ajax.get(`/backend/partner/data/statisticsPartnerCenter`)
// }
export function getTrendData(query) {
  return ajax({
    url: '/backend/partner/data/statisticsPartnerCenter',
    method: 'get',
    params: query
  });
}
// 数据罗盘
// export function getCompassData() {
//   return ajax.get('partner_admin/statistic/data_presentation/data_compass')
// }
export function getCompassData(query) {
  return ajax({
    url: '/backend/partner/data/statisticsPartnerCenter',
    method: 'get',
    params: query
  });
}


// 小店排行


export function shopSaleRanking(query) {
  return ajax({
    url: '/backend/partner/data/shopSaleRanking',
    method: 'get',
    params: query
  });
}
// 小店排行


export function trendingData(query) {
  return ajax({
    url: '/backend/partner/data/trendingData',
    method: 'get',
    params: query
  });
}